Package com.cisco.pt.ipc.sim.impl
Class AsaNetworkObjectImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.AsaNetworkObjectImpl
- All Implemented Interfaces:
IPCObject,AsaNetworkObject
Information provided by the PKI file:
\class CAsaNetworkObject
\brief CAsaNetworkObject is the asa network object
\example network().getDevice("Router0").getObjectManager()->getObjectByName("objectName")
\\use castTo() function to cast AsaObject to AsaNetworkObject
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionAsaNetworkObjectImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptionvoidInformation provided by the PKI file:voidInformation provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:voidnameifChanged(String newName, String oldName) Information provided by the PKI file:booleanremoveHostIp(IPAddress hostIp) Information provided by the PKI file:booleanremoveSubnet(IPAddress hostIp, IPAddress hostMask) Information provided by the PKI file:voidInformation provided by the PKI file:voidInformation provided by the PKI file:voidInformation provided by the PKI file:Methods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession
-
Constructor Details
-
AsaNetworkObjectImpl
public AsaNetworkObjectImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
setHostIp
Information provided by the PKI file:
\brief set the host ip address to the asa network object \param hostIp, ip address to use as the host.- Specified by:
setHostIpin interfaceAsaNetworkObject- Parameters:
hostIp- Takes in a parameter of hostIp
-
getHostIp
Information provided by the PKI file:
\brief Returns the host ip address/network address that is set to the asa network object \return ip, value is the host ip address/network address that is set to the asa network object.- Specified by:
getHostIpin interfaceAsaNetworkObject- Returns:
- IPAddress Returns a IPAddress
-
getHostMask
Information provided by the PKI file:
\brief Returns the subnet mask that is set to the asa network object. \return ip, value is the the subnet mask that is set to the asa network object.- Specified by:
getHostMaskin interfaceAsaNetworkObject- Returns:
- IPAddress Returns a IPAddress
-
getInvHostMask
Information provided by the PKI file:
\brief Returns the inverse subnet mask that is set to the asa network object. \return ip, value is the the inverse subnet mask that is set to the asa network object.- Specified by:
getInvHostMaskin interfaceAsaNetworkObject- Returns:
- IPAddress Returns a IPAddress
-
removeHostIp
Information provided by the PKI file:
\brief Remove the host ip address that is set to the asa network object \param hostIp, hos ip address to remove. \return bool, value is true if the host was removed, false if not.- Specified by:
removeHostIpin interfaceAsaNetworkObject- Parameters:
hostIp- Takes in a parameter of hostIp- Returns:
- boolean Returns a boolean
-
setSubnet
Information provided by the PKI file:
\brief Set the subnet/mask to the asa network object \param hostIp, Host ip address to set with. \param hostMask, Host mask to set with.- Specified by:
setSubnetin interfaceAsaNetworkObject- Parameters:
hostIp- Takes in a parameter of hostIphostMask- Takes in a parameter of hostMask
-
removeSubnet
Information provided by the PKI file:
\brief Remove the subnet/mask that is set to the asa network object \param hostIp, Host ip address to remove for. \param hostMask, Host mask to remove for. \return bool, return is true if the subnet was removed, false if not.- Specified by:
removeSubnetin interfaceAsaNetworkObject- Parameters:
hostIp- Takes in a parameter of hostIphostMask- Takes in a parameter of hostMask- Returns:
- boolean Returns a boolean
-
getNatEntry
Information provided by the PKI file:
\brief Returns static nat entry that is set to the asa network object \return NatEntry, value is the static nat entry.- Specified by:
getNatEntryin interfaceAsaNetworkObject- Returns:
- NATEntry Returns a NATEntry
-
deleteNatEntry
public void deleteNatEntry()Information provided by the PKI file:
\brief Remove static nat entry that is set to the asa network object- Specified by:
deleteNatEntryin interfaceAsaNetworkObject
-
getNatList
Information provided by the PKI file:
\brief Returns dynamic nat entry that is set to the asa network object \return NatListInterface, value is the nat list interface.- Specified by:
getNatListin interfaceAsaNetworkObject- Returns:
- NATListInterface Returns a NATListInterface
-
deleteNatList
public void deleteNatList()Information provided by the PKI file:
\brief Remove dynamic nat entry that is set to the asa network object- Specified by:
deleteNatListin interfaceAsaNetworkObject
-
nameifChanged
Information provided by the PKI file:
\brief Remove nat entry when the referenced nameif is changed. \param newName, new nameif \param oldName, old nameif- Specified by:
nameifChangedin interfaceAsaNetworkObject- Parameters:
newName- Takes in a parameter of newNameoldName- Takes in a parameter of oldName
-
getRunningConfig
Information provided by the PKI file:
\brief Returns all object configuration strings in show run. \return vector<string>, value is all object configuration strings in show run.- Specified by:
getRunningConfigin interfaceAsaNetworkObject- Returns:
- List<String> Returns a List<String>
-
getNatRunningConfig
Information provided by the PKI file:
\brief Returns object + nat configuration strings in show run \return vector<string>, value object + nat configuration strings in show run- Specified by:
getNatRunningConfigin interfaceAsaNetworkObject- Returns:
- List<String> Returns a List<String>
-
getNatStatement
Information provided by the PKI file:
\brief Returns the nat statement configuration string in show run. return string, value is the nat statement configuration string in show run.- Specified by:
getNatStatementin interfaceAsaNetworkObject- Returns:
- String Returns a String
-
getAddressStatement
Information provided by the PKI file:
\brief Returns the host address/subnet mask statement configuration string in show run. \return string, value is the host address/subnet mask statement configuration string in show run.- Specified by:
getAddressStatementin interfaceAsaNetworkObject- Returns:
- String Returns a String
-
updateAsaAclStatement
public void updateAsaAclStatement()Information provided by the PKI file:
\brief Update the corresponding acl statements that have reference to this asa network object- Specified by:
updateAsaAclStatementin interfaceAsaNetworkObject
-